home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1833 / 1833.xpi / chrome / yoono.jar / content / yoono / yoonoOverlay.xul < prev   
Extensible Markup Language  |  2009-12-16  |  10KB  |  183 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://yoono/skin/yoono.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://yoono/skin/toolbar-button.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://yoono/skin/recoTooltip.css" type="text/css"?>
  6. <?xul-overlay href="chrome://yoono/content/bkmMenus.xul"?>
  7.  
  8.  
  9. <!DOCTYPE overlay [
  10.   <!ENTITY % hop SYSTEM "chrome://yoono/locale/yoono.dtd" >
  11.   %hop;
  12.   <!ENTITY % tac SYSTEM "chrome://yoono/locale/yoono-links.dtd" >
  13.   %tac;
  14. ]>
  15.  
  16. <overlay id="yoonoOverlay"
  17.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18.          xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  19.          xmlns:html="http://www.w3.org/1999/xhtml">
  20.  
  21.    <toolbarpalette id="BrowserToolbarPalette">
  22.    
  23.       <!-- Bouton toggle sidebar -->
  24.       <toolbarbutton type="menu-button" id="yoono-toggle-sb"
  25.                      tooltiptext="&sbtbtoggle.label;"
  26.                      oncommand="yoonoGlob.toggleSb(event)"
  27.                      >
  28.  
  29.            <menupopup onpopupshowing="YOONO_CMPT.addStat(['clic', 'menu', 'yoonobutton']);">
  30.               <menuitem id="yoono-mymemos-menuitem" label="&menu.mymemos.label;" accesskey="&menu.mymemos.accesskey;"
  31.                               oncommand="YOONO_CMPT.loginMyYoonoPages('webnote', event)" 
  32.                               hidden="true"
  33.                               tooltiptext="&menu.mymemos.tooltiptext;"/>
  34.               <menu label="&menu.open.label;" accesskey="&menu.open.accesskey;"
  35.                     tooltiptext="&menu.open.tooltiptext;">
  36.                  <menupopup>
  37.                     <menuitem label="&menu.openfriends.label;" accesskey="&menu.openfriends.accesskey;" 
  38.                               oncommand="yoonoGlob.openYoodget('{friends@yoono.com}')" 
  39.                               tooltiptext="&menu.openfriends.tooltiptext;"/>
  40.                     <menuitem label="&menu.opendiscoveries.label;" accesskey="&menu.opendiscoveries.accesskey;" 
  41.                               oncommand="yoonoGlob.openYoodget('{discoveries@yoono.com}')" 
  42.                               tooltiptext="&menu.opendiscoveries.tooltiptext;"/>
  43.                  </menupopup>
  44.               </menu>
  45.               <menuitem label="&menu.openshare.label;" accesskey="&menu.openshare.accesskey;"
  46.                               oncommand="yoonoGlob.openShare()" 
  47.                               tooltiptext="&menu.openshare.tooltiptext;"/>
  48.               <menu id="menu-yoolink"
  49.                     label="&yoono-links.main-button-label;" 
  50.                     tooltiptext=""
  51.                     accesskey="">
  52.                 <menupopup id="yoono-links-menu-main-button">
  53.                   <menuitem type="checkbox" label="&yoono-links.enable;" 
  54.                     pref="enable"
  55.                     oncommand="yoonoLinks.action(this)"
  56.                     tooltiptext=""/>
  57.                   <menuseparator />
  58.                   <menuitem type="checkbox" 
  59.                             label="&yoono-links.display-in-sidebar;" pref="display-in-sidebar" 
  60.                             oncommand="yoonoLinks.action(this)" />
  61.                 </menupopup>
  62.               </menu>
  63.  
  64.               <menuseparator />
  65.               <menuitem label="&menu.homepage.label;" accesskey="&menu.homepage.accesskey;"
  66.                         oncommand="openUILink('http://www.yoono.com', event)"
  67.                         onclick="checkForMiddleClick(this, event)"
  68.                         tooltiptext="&menu.homepage.tooltiptext;"/>
  69.               
  70.               
  71.               <menuitem label="&menu.terms-of-use.label;" accesskey="&menu.terms-of-use.accesskey;"
  72.                         oncommand="openUILink('http://www.yoono.com/terms.html', event)"
  73.                         onclick="checkForMiddleClick(this, event)"
  74.                         tooltiptext="&menu.terms-of-use.tooltiptext;"/>
  75.               <menuitem label="&menu.privacy.label;" accesskey="&menu.privacy.accesskey;"
  76.                         oncommand="openUILink('http://www.yoono.com/privacy.html', event)"
  77.                         onclick="checkForMiddleClick(this, event)"
  78.                         tooltiptext="&menu.privacy.tooltiptext;"/>
  79.               <menuitem label="&menu.help.label;" accesskey="&menu.help.accesskey;"
  80.                         oncommand="openUILink('http://www.yoono.com/help.html', event)"
  81.                         onclick="checkForMiddleClick(this, event)"
  82.                         tooltiptext="&menu.help.tooltiptext;"/>
  83.               <menuseparator/>
  84.               <menu label="&menu.more.label;" accesskey="&menu.more.accesskey;"
  85.                     tooltiptext="&menu.more.tooltiptext;">
  86.                  <menupopup>
  87.                    <menuitem id="yoono-chpasswd-menuitem"
  88.                         label="&menu.chpasswd.label;" accesskey="&menu.chpasswd.accesskey;"
  89.                         oncommand="ynOpenChrome('changepasswd', null)"
  90.                         tooltiptext="&menu.chpasswd.tooltiptext;"/>
  91.                    <menuitem label="&menu.uninstall.label;" 
  92.                         oncommand="yoonoObserver.uninstallFromButton()"
  93.                         onclick="checkForMiddleClick(this, event)"
  94.                         tooltiptext="&menu.uninstall.tooltiptext;"/>
  95.                  </menupopup>
  96.               </menu>
  97.          </menupopup>
  98.       </toolbarbutton>
  99.  
  100.    </toolbarpalette>
  101.  
  102.    <popup id="contentAreaContextMenu">
  103.       <menuitem class="yoono-context-menuitem menu-iconic" oncommand="yoonoGlob.openShare()" label="&menu.openshare.label;" insertbefore="context-bookmarkpage"/>
  104.       <menu class="yoono-context-menuitem menu-iconic" label="&doccontext.addtomemo.label;"
  105.              id="yoono-context-menuitem"
  106.              accesskey="&doccontext.addtomemo.accesskey;" contextmenu=""
  107.              hidden="true"
  108.              insertbefore="context-bookmarkpage">
  109.         <menupopup name="mainPopup" parent="contextmenu" onpopupshowing="yoonoGlob.showMemoContextMenu(event, this)"
  110.                    onpopuphiding="yoonoGlob.hideMemoContextMenu(this)">
  111.         </menupopup>
  112.       </menu>
  113.    </popup>
  114.  
  115.    <menupopup id="viewSidebarMenu">
  116.       <menuitem oncommand="yoonoGlob.sidebar.toggle()" label="Yoono" key="key_opensidebarTest"/>
  117.    </menupopup>
  118.  
  119.   <hbox id="browser">
  120.     <vbox persist="hidden, width" class="chromeclass-extrachrome" id="yoono-sidebar-box" insertbefore="sidebar-box">
  121.       <browser id="yoono-sidebar" flex="1" disablehistory="true" />
  122.     </vbox>
  123.     <box persist="hidden" id="yoono-splitter" insertbefore="sidebar-box" />
  124.   </hbox>
  125.    
  126.    <keyset id="mainKeyset">
  127.        <key id="key_opensidebarTest" key="Y" modifiers="accel,alt" oncommand="yoonoGlob.sidebar.toggle()" />
  128.        <key id="key_togglethin" key="T" modifiers="accel,alt" oncommand="yoonoGlob.sidebar.toggleThin()" />
  129.    </keyset>
  130.  
  131.   <stringbundleset id="stringbundleset"> 
  132.     <stringbundle id="yoono-strings" src="chrome://yoono/locale/yoono.properties"/>
  133.   </stringbundleset>
  134.  
  135.   <!-- FF2 -->
  136.   <menupopup id="menu_BookmarksPopup">
  137.       <menu position="4" label="Yoono" id="yoono-bkm-menu" accesskey="&bkm.menu.accesskey;" contextmenu="">
  138.       <menupopup>
  139.         <menuitem id="yoono-options-menuitem" label="&menu.options.label;" accesskey="&menu.options.accesskey;"
  140.                         tooltiptext="&menu.options.tooltiptext;"
  141.                         oncommand="yoonoGlob.sidebar.showManageBookmarks()"/> 
  142.         <menuseparator/>
  143.         <menuitem label="&yoono.restorebmarks.label;" accesskey="&yoono.restorebmarks.accesskey;" tooltiptext="&yoono.restorebmarks.tooltip;" command="cmd_yoono_restorebmarks" />
  144.         <menuitem label="&yoono.savebmarks.label;" accesskey="&yoono.savebmarks.accesskey;" tooltiptext="&yoono.savebmarks.tooltip;" command="cmd_yoono_savebmarks" />
  145.       </menupopup>
  146.       </menu>
  147.   </menupopup>
  148.  
  149.   <!-- FF3 -->
  150.   <menupopup id="bookmarksMenuPopup">
  151.       <menu position="4" label="Yoono" id="yoono-bkm-menu" accesskey="&bkm.menu.accesskey;" contextmenu="">
  152.       <menupopup>
  153.         <menuitem id="yoono-options-menuitem" label="&menu.options.label;" accesskey="&menu.options.accesskey;"
  154.                         tooltiptext="&menu.options.tooltiptext;"
  155.                         oncommand="yoonoGlob.sidebar.showManageBookmarks()"/> 
  156.         <menuseparator/>
  157.         <menuitem label="&yoono.restorebmarks.label;" accesskey="&yoono.restorebmarks.accesskey;" tooltiptext="&yoono.restorebmarks.tooltip;" command="cmd_yoono_restorebmarks" />
  158.         <menuitem label="&yoono.savebmarks.label;" accesskey="&yoono.savebmarks.accesskey;" tooltiptext="&yoono.savebmarks.tooltip;" command="cmd_yoono_savebmarks" />
  159.       </menupopup>
  160.       </menu>
  161.   </menupopup>
  162.   
  163.   <script type="application/x-javascript" src="chrome://yoono/content/utils.js"/>
  164.   <script type="application/x-javascript" src="chrome://yoono/content/sidebar.js"/>
  165.   <script type="application/x-javascript" src="chrome://yoono/content/yoonoGlobCommon.js"/>
  166.   <script type="application/x-javascript" src="chrome://yoono/content/yoonoGlobMemo.js"/>
  167.   <script type="application/x-javascript" src="chrome://yoono/content/yoonoGlobToolbar.js"/>
  168.   <script type="application/x-javascript" src="chrome://yoono/content/messageinfos.js"/>
  169.   <script type="application/x-javascript" src="chrome://yoono/content/tabbrowserListener.js"/>
  170.   <script type="application/x-javascript" src="chrome://yoono/content/yoonoOverlay.js"/>
  171.   <script type="application/x-javascript" src="chrome://yoono/content/bkmMenus.js"/>
  172.   
  173.   
  174.   <script type="application/x-javascript" src="chrome://yoono/content/services/connexion.js"/>
  175.   <script type="application/x-javascript" src="chrome://yoono/content/services/idle.js"/>
  176.  
  177. <!-- commandset is defined via overlay -->
  178. <window id="main-window">
  179. <commandset id="yoono-bkmmenus-commandset"/>
  180. </window>
  181.  
  182. </overlay>
  183.